
package com.principle.visitor;

public class Manager extends Employee {

    // 独有的业绩属性
    private String performance;

    public String getPerformance() {
        return this.performance;
    }

    public void setPerformance(String performance) {
        this.performance = performance;
    }

    /**
     * 部门经理允许访问者访问
     */
    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }

}
